	<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%> 
	<html>
		<head>
<link href="common/common.css" type="text/css"	rel="stylesheet">
<script src="common/sortabletable.js"	type="text/javascript"></script>
<script src="common/common.js" type="text/javascript"></script>
<script type="text/javascript"	src="common/popcalendar.js"></script>
</head>
		<body>
			<div style="width:900px" id="rightlayout">
				<div style="text-align: left; color: red">
					<html:errors></html:errors>
				</div>
				<html:form action="/ExpressShipPathMainAction">
		<table style="color:#000066;background: url(images/qurybg.jpg) left top repeat-x;background-color:#C9DCE3;" width="100%" align="center">
			<tbody> 
			<tr>
					<td>起始城市: </td><td> 
					<html:text property="qStartPos" size="5" styleClass="textbox" errorStyleClass="textbox_err" />
				</td>
					<td>目的城市: </td><td> 
					<html:text property="qEndPos" size="5" styleClass="textbox" errorStyleClass="textbox_err" />
				</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="deliveryServiceTypeM" return="serviceTypedicMap" />
					<td>服务类型: </td><td> 
					 <html:select property="qServiceType">
						<html:option value="">请选择</html:option>
					    <html:options collection="serviceTypedicMap" property="key"	labelProperty="value" />
					    </html:select>
				</td>
				<ct:call object="${springctx.appDicService}" method="getDicMap"	param="transPortTypeMap" return="transPortTypedicMap" />
					<td>运输方式: </td><td> 
					 <html:select property="qTransPortType">
						<html:option value="">请选择</html:option>
					    <html:options collection="transPortTypedicMap" property="key"	labelProperty="value" />
					    </html:select>
				</td>
				<td  align="left">
				<input type="button" name="query" class="button"
					value="查询" onclick="submitFrm(this.form,'<c:url
					value='ExpressShipPathMainAction.do?method=doQuery'/>')"/>
				</td>
					</tr>
			</tbody>
		</table>
					<input type="button" name="add" class="button"
					value="添加" onClick="redirect('<c:url
					value='ExpressShipPathMainAction.do?method=displayExpressShipPathCreateScreen'/>')">
					<input type="button" name="delete" class="button"
					value="批量删除"
					onclick="confirmSubmit('是否删除',this.form,'<c:url
 					value='ExpressShipPathMainAction.do?method=batchDelete'/>')">
 					<br></br>
					<c:import url="/common/pager.jsp"></c:import>
						<table width="100%" class="sort-table" align="right" id="itemsList">
							<thead>
								<tr align="center">
									<td width="30px">
										<input onclick="checkBoxSelectAll('ids');" name="multipleSelect" type="checkbox"></input>
									</td>
										<td>起始城市</td>
										<td>目的城市</td>
										<td>服务类型</td>
										<td>运输方式</td>
										<td>运输距离</td>
										<td>预计运时</td>
										<td>运输报价</td>
										<td>加急报价</td>
									<td>操作</td>
								</tr>
							</thead>
							<tbody>
								<c:forEach var='vo' items="${ITEMS_COLLECTION}">
								<tr onmouseout="changeColor(this,false,'orange');" onmouseover="changeColor(this,true,'orange')">
								<td width="5%"><input type="checkbox"
											name="ids" value="${vo.id}" /></td>
								<td width=""><a href="#" onclick="redirect('<c:url value='ExpressShipPathMainAction.do?method=displayExpressShipPathBrowseScreen&id=${vo.id}'/>')">
								${vo.startPos}
								</a>
								</td>
								<td width="">
								${vo.endPos}
								</td>
								<td width="">
								<ct:call object="${springctx.appDicService}" method="getDicMap" param1="deliveryServiceTypeM" return="mapserviceType"/>${mapserviceType[vo.serviceType]} 
								</td>
								<td width="">
								<ct:call object="${springctx.appDicService}" method="getDicMap" param1="transPortTypeMap" return="maptransPortType"/>${maptransPortType[vo.transPortType]} 
								</td>
								<td width="60px">
								${vo.roadDistance}
								</td>
								<td width="60px">
								${vo.estimateHours}
								</td>
								<td width="60px">
								${vo.quotedPrice}
								</td>
								<td width="60px">
								${vo.urgentPrice}
								</td>
								<td width="10%"><img src="images/edit.gif" title="编 辑" class="btnImg"
onClick="javascript:confirmClick('是否修改?','<c:url value='ExpressShipPathMainAction.do?method=displayExpressShipPathUpdateScreen&id=${vo.id}'/>')" ></td>
								</tr>
								 </c:forEach>  
							</tbody>
							<tfoot>
								<tr>
									<td colspan="12"></td>
								</tr>
							</tfoot>
						</table>
				</html:form>
				<script type="text/javascript"> var st = new
				SortableTable( document.getElementById("itemsList"),
				["None","String","String","String","String","String","String","String","String","None",],'#FFFFCC','#FFFFFF','#B1C3D9'); </script>
			</div>
		</body>
	</html>
